<template>
  <div class="hamburger-container" @click="toggleClick"> 
    <icon :name="`local-icon-${isCollapsed ? 'open' : 'close'}`" :size="20" />
  </div>
</template>

<script setup>
import {computed} from 'vue' 
import { useAppStore} from '@/stores/app'
 
const appstore = useAppStore()

 
const isCollapsed = computed(() => appstore.sidebarOpened)
const toggleClick = () => {
  appstore.triggerSidebarOpened()
}
</script>

<style lang="scss" scoped>
.hamburger-container {
  padding: 0 16px;
  .icon {
    font-size: 20px !important;
  }
}
</style>
